package com.uchedao.vehicledetection.model;

import com.google.gson.annotations.SerializedName;

/**
 * 失火检测
 * 
 * @author "叶晋"
 * 
 */
public class Fire implements Cloneable {
	// public boolean line_replace;// 线路是否更换
	// public boolean line_burn;// 线路是否有烧蚀痕迹
	// public boolean cabin_fw_burned;// 机舱防火墙是否焦黑
	// public boolean cylinders_burned;// 缸体表面是否有焦黑积碳
	// public boolean cabin_colloid;// 机舱是否有胶体融化滴蚀
	// public boolean relay_burn;// 继电器盒是否有烧蚀痕迹
	// public boolean relay_replace;// 继电器盒子是否有更换
	// public boolean body_burn;// 车体是否有带漆部位烧蓝

	@SerializedName("values")
	public boolean[] values = new boolean[8];

	// public String toString() {
	// String[] names =
	// GlobalInfo.resources.getStringArray(R.array.fire_key_entries);
	// JsonObject json = new JsonObject();
	// for (int i = 0; i < names.length; i++)
	// json.addProperty(names[i], values[i]);
	// return json.toString();
	// }

	@Override
	public Fire clone() {
		Fire fire = null;
		try {
			fire = (Fire) super.clone();
			fire.values = values.clone();
			// return (Fire) super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return fire;
	}

}
